<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>修改车辆——后台管理</title>
    <link rel="stylesheet" type="text/css" href="__CSS__/common.css"/>
    <link rel="stylesheet" type="text/css" href="__CSS__/main.css"/>
    <script type="text/javascript" src="__JS__/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="__JS__/libs/modernizr.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="__JS__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__JS__/ueditor/ueditor.all.min.js"> </script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="__JS__/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>

    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/jscss/admin/design/">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="__MODULE__/cate/lst">车型管理</a><span class="crumb-step">&gt;</span><span>修改车辆</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="/admin/Article/add" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <input type="hidden" name="id" value="{$artres.id}" />
                    <table class="insert-tab" width="100%">
                        <tbody><tr>
                            <th ><i class="require-red">*</i>所属分类：</th>
                            <td >
                                <select name="cateid" id="catid" class="required">
                                    {volist name="cates" id="vo"}
                                    <option {if condition="$artres['cateid']==$vo['id']"}selected="selected"{/if} value="{$vo.id}">{if condition="$vo['parentid'] neq 0"}|{/if}{$vo.name}</option>
                                    {/volist}
                                </select>
                            </td>
                        </tr>
                            <tr>
                                <th><i class="require-red">*</i>品牌：</th>
                                <td>
                                    <input class="common-text required" id="title" name="brand" size="50" value="{$artres.title}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th>车辆归属地</th>
                                <td>
                                    <select name="city" id="">
                                        <option value="SH">上海</option>
                                        <option value="BJ">北京</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <th>分店</th>
                                <td>
                                <select name="site" id="">
                                    <option value="2">徐家汇店</option>
                                    <option value="1">陆家嘴店</option>
                                </select></td>
                            </tr>
                            <tr>
                                <th>描述：</th>
                                <td><textarea name="desc" class="common-textarea" cols="55" rows="5">{$artres.des}</textarea></td>
                            </tr>
                            <tr>
                                <th>文章：</th>
                                <td><textarea name="article" class="common-textarea" cols="55" rows="5">{$artres.des}</textarea></td>
                            </tr>
                            
                            
                          
                            <tr class="btype">
                                <th>日租：</th>
                                <td>
                                <input class="common-text" name="price" size="50" value="{$artres.rizu}"  type="text">元/天
                                </td>
                            </tr>
                            
                            <tr>
                                <th><i class="require-red">*</i>缩略图：</th>
                                <td><input name="pic" id="" type="file">
                                {if condition="$artres['pic'] neq ''"}<img src="__IMG__/{$artres.pic}" height="50" />{else /}暂无缩略图{/if}
                                </td>
                            </tr>
                            
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
</body>
</html>
<script type="text/javascript">

    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    UE.getEditor('content',{initialFrameWidth:1000,initialFrameHeight:400,});
    $(".btype").hide();
    var i={$artres.atype};
    $(".btype").eq(i).show();
    $("#atype input").click(function(){
        var i=$(this).index();
        $(".btype").hide();
        $(".btype").eq(i).show();
    });


</script>